package com.hzhq.contract.bean.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;

import java.util.Date;

/**
 * @author hzhq
 * @create 2021/4/9 5:44 下午
 * @email hzhq1255@163.com
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("管理员信息DTO")
public class AdminDTO {

    private ObjectId adminId;
    @ApiModelProperty(value = "管理员名称")
    private String adminName;
    @ApiModelProperty(value = "管理员密码")
    private String password;
    @ApiModelProperty(value = "管理员电话")
    private String phone;
    @ApiModelProperty(value = "是否被删除,1 删除 0 未删除")
    private Integer deleted;
    @ApiModelProperty(value = "注册时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date registerTime;
}
